package com.moon.interview.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.moon.interview.model.dto.questionBankQuestion.QuestionBankQuestionBatchRequest;
import com.moon.interview.model.dto.questionBankQuestion.QuestionBankQuestionRequest;
import com.moon.interview.model.entity.QuestionBankQuestion;
import com.moon.interview.model.vo.QuestionBankQuestionVo;
import jakarta.servlet.http.HttpServletRequest;

import java.util.List;

/**
 * 题目题库关联(QuestionBankQuestion)表服务接口
 *
 * @author MoonX
 * @since 2025-03-14 14:12:40
 */
public interface IQuestionBankQuestionService extends IService<QuestionBankQuestion> {

    /** 新增题库题目关联 */
    Boolean addQuestionBankQuestion(QuestionBankQuestionRequest addRequest);

    /** 更新题目题库关联 */
    Boolean updateQuestionBankQuestion(QuestionBankQuestionRequest addRequest);

    /** 批量新增题目题库关联 */
    Boolean addBatchQuestionBankQuestion(QuestionBankQuestionBatchRequest batchRequest);

    /** 根据题目Id获取题库信息 */
    List<QuestionBankQuestionVo> getQuestionBankByQuestionId(Long questionId);

    /** 根据题库Id删除题目 */
    Boolean removeQuestionByBankId(Long bankId);
}

